package com.xw.service.tool.oss;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

public interface OssService {
    /**
     * 上传单个文件
     * @param file
     * @return
     * @throws IOException
     */
    Map upload(MultipartFile file) throws IOException;

    /**
     * 上传多个文件
     * @param files
     * @return
     * @throws IOException
     */
    Map uploadBatch(MultipartFile[] files) throws IOException;


}
